package dao;

import java.io.IOException;

public class ConnectionPoolManager {
	private static ConnectionPoolManager instance;
	private DBConnectionPool connectionPool;

	private ConnectionPoolManager() {
		try {
			connectionPool = new DBConnectionPool();
		} catch (IOException ex) {
			ex.printStackTrace();
			System.out.println("new ConnectionPoolManager: " + ex.getStackTrace());
		}
	}

	public static ConnectionPoolManager getInstance() {
		if (instance == null)
			instance = new ConnectionPoolManager();
		return instance;
	}

	public DBConnectionPool getConnectionPool() {
		return this.connectionPool;
	}
}
